package com.zhangbo.study.designpatternlearning.proxy.impl;

import com.zhangbo.study.designpatternlearning.proxy.MyRemote;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class MyRemoteImpl extends UnicastRemoteObject implements MyRemote {


    public MyRemoteImpl(int port) throws RemoteException {
        super(port);
    }

    @Override
    public String execute() throws RemoteException {
        return "success";
    }
}
